package com.csdj.essay.common;

/**
 * 缓存相关的常量
 */
public class CacheConstant {

    public static final String HEADER_UID = "uid";
    //在redis中保存token的键名的前缀
    public static final String TOKEN_PREFIX = "token_";
    public static final String HEADER_JIGSAW_PUZZLE = "jid";

    //token在缓存中的存活时间 以秒为单位
    public static final int TOKEN_CACHE_TIME = 3600;

    //ehcache中缓存用户信息的缓存名称
    public static final String CACHE_NAME_USER = "UserCache";


    //用户登录密码错误次数
    public static final String USERNAME_PREFIX = "username_";
    public static final String NUMBER_OF_INCORRECT_LOGIN_PASSWORDS = "NumberOfIncorrectLoginPasswords_";

    //用户注册错误
    public static final String CACHE_CHECK_CODE = "CheckCode";
    public static final String CACHE_PIECES_POSITION = "piecesPosition";
    public static final String CACHE_NUMBER_OF_ERRORS = "numberOfErrors";
    //签到最多和最少赠送的积分数量
    public static final int MAX_NUMBER_OF_INTEGRAL = 15;
    public static final int MIN_NUMBER_OF_INTEGRAL = 1;

}
